package com.sixth.service;

import com.github.pagehelper.PageInfo;
import com.sixth.bean.MarketGoods;
import com.sixth.bean.bo.AdminGoodsCreateBO;
import com.sixth.bean.common.BasePageInfo;
import com.sixth.bean.vo.*;

import java.util.List;

/**
 * @author qys
 * @Description
 * @date 2022/9/8 13:07
 */
public interface GoodsService {

    Object adminGoodsList(BasePageInfo basePageInfo, String goodsSn, Integer goodsId, String name);

    CatAndBrandVO catAndBrand();


    int adminGoodsCreate(AdminGoodsCreateBO adminGoodsCreateBO);

    AdminGoodsDetailVO adminGoodsDetail(Integer id);

    int adminGoodsDelete(MarketGoods marketGoods);

    int adminGoodsUpdate(AdminGoodsCreateBO adminGoodsCreateBO);

    //lixinhang 新增进入微信小程序首页，查询商品的方法(isNew/isHot)
    List<WXHomeIndexGoodsVO> indexGoodsList(String s,BasePageInfo basePageInfo);

    //查询全部deleted为0的商品的个数
    Integer wxGoodsCount();

    WXGoodsCategoryVO wxGoodsCategory(Integer id);

    WXGoodsListVO wxGoodsList(Integer categoryId, Integer brandId, boolean isHot, boolean isNew, String keywords, BasePageInfo basePageInfo);

    WXGoodsDetailVO wxGoodsDetail(Integer id);

    WXGoodsRelatedVO wxGoodsRelated(Integer id);

}
